package com.canbot.u05.activity.agenda.bean

import java.io.Serializable

/**
 * @author yinxiaowei
 * @date 2019/5/31
 */
class AgendaBean : Serializable, Comparable<AgendaBean> {
    override fun compareTo(other: AgendaBean): Int {
        return this.startTime?.compareTo(other.startTime!!)!!
    }

    var agendaType: AgendaTypeBean = AgendaTypeBean() // 这个必须选择
    var startTime: Long? = null // 这个必须选择
    var endTime: Long? = null
    var workDay: AgendaWorkDayBean = AgendaWorkDayBean()// 这个必须选择
    var pos: AgendaPosBean? = null // 默认无地点
    var pwd: Boolean = false  // 默认不需要验证
    override fun toString(): String {
        return "AgendaBean(agendaType=$agendaType, startTime=$startTime, endTime=$endTime, workDay=$workDay, pos=$pos, pwd=$pwd)"
    }
}
